/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package utilities;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 * 
 * @author Administrator
 */
public class PersistUtil {

	private static EntityManagerFactory emf = Persistence
			.createEntityManagerFactory("TestappPU");
	private static EntityManager em;

	public static EntityManager getEm() {

		em = emf.createEntityManager();
		return em;
	}

}
